-
-
Notifications
You must be signed in to change notification settings - Fork 471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Script: calibre-server #960
base: main
Are you sure you want to change the base?
Conversation
…e tag case, and add newline in success message
update_os | ||
|
||
msg_info "Installing Dependencies" | ||
$STD apt-get install -y imagemagick xvfb libxcomposite1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$STD apt-get install -y imagemagick xvfb libxcomposite1 | |
$STD apt-get install -y \ | |
sudo \ | |
curl \ | |
mc \ | |
imagemagick \ | |
xvfb \ | |
libxcomposite1 |
msg_info "Installing Calibre (latest)" | ||
# If your container runs as root, you generally do not need to prefix with `sudo`. | ||
# The official Calibre instructions: | ||
wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sh /dev/stdin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before Downloading, can you get the Version number somehow? Just so you can check during the update that it is needed. And is this operation truly silent?
# Potentially re-run the official calibre script to ensure most recent version | ||
# to keep logic consistent with how other scripts handle updates. | ||
msg_info "Updating Calibre (latest)" | ||
wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sh /dev/stdin &>/dev/null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If possible check if there is a newer version wich needs to be installed. Have a look at the snipeit.sh file for reference.
{ | ||
"text": "Use 'calibredb add' from the calibre user or run 'xvfb-run calibredb add ...' if you need to add books while the server is running.", | ||
"type": "info" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove and write a guide in the disscusion section.
"documentation": null, | ||
"website": "https://calibre-ebook.com", | ||
"logo": "https://calibre-ebook.com/resources/icons/calibre_icon.png", | ||
"description": "Calibre content server is usedto manage and serve eBooks over the network.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"description": "Calibre content server is usedto manage and serve eBooks over the network.", | |
"description": "Calibre content server is used to manage and serve eBooks over the network.", |
chown -R calibre:calibre /opt/calibre | ||
msg_ok "Created calibre user & directories" | ||
|
||
msg_info "Creating systemd service" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
msg_info "Creating systemd service" | |
msg_info "Creating Service" |
msg_ok "Installed Calibre" | ||
|
||
msg_info "Creating calibre system user & directories" | ||
useradd -c "Calibre Server" -d /opt/calibre -s /bin/bash -m calibre | ||
mkdir -p /opt/calibre/calibre-library | ||
chown -R calibre:calibre /opt/calibre | ||
msg_ok "Created calibre user & directories" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
msg_ok "Installed Calibre" | |
msg_info "Creating calibre system user & directories" | |
useradd -c "Calibre Server" -d /opt/calibre -s /bin/bash -m calibre | |
mkdir -p /opt/calibre/calibre-library | |
chown -R calibre:calibre /opt/calibre | |
msg_ok "Created calibre user & directories" | |
useradd -c "Calibre Server" -d /opt/calibre -s /bin/bash -m calibre | |
mkdir -p /opt/calibre/calibre-library | |
chown -R calibre:calibre /opt/calibre | |
msg_ok "Installed Calibre" |
$STD apt-get install -y imagemagick xvfb libxcomposite1 | ||
msg_ok "Installed Dependencies" | ||
|
||
msg_info "Installing Calibre (latest)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
msg_info "Installing Calibre (latest)" | |
msg_info "Installing Calibre" |
hey @michelroegl-brunner , thank you for taking a look through my PR. I had actually set this up as a draft and wasn't expecting anyone to review. I will update with your recommended changes when I get the chance! |
✍️ Description
Create a new script that adds calibre-server as an LXC
🛠️ Type of Change
Please check the relevant options:
✅ Prerequisites
The following steps must be completed for the pull request to be considered:
📋 Additional Information (optional)
Provide any extra context or screenshots about the feature or fix here.